package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Accdentdetail;
import cn.wolfcode.crm.query.AccentdatailQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AccdentdetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Accdentdetail entity);

    Accdentdetail selectByPrimaryKey(Long id);

    List<Accdentdetail> selectAll();

    int updateByPrimaryKey(Accdentdetail entity);

    int query4Count(QueryObject qo);

    List<Accdentdetail> query4List(QueryObject qo);

    List<Accdentdetail> auditquery(AccentdatailQueryObject qo);

    int auditquery4Count();

    void changeAuditState(Long id);

    void changeState(Long id);

    void updateDate(@Param("id") Long id, @Param("date") Date date);

    void updateClaim(Long id);

    void insertGuardId(@Param("id")Long id, @Param("guardId") Long guardId);
}